package com.lxlg.lxlg_order.client.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("会员等级充值订单")
public class UserRechargeForm {

    @ApiModelProperty("实际充值金额")
    @Pattern(regexp = "^[0-9]{1,}\\.{0,1}[0-9]{0,}")
    private String goodsTotalPrice;
    @ApiModelProperty("优惠减少金额")
    @Pattern(regexp = "^[0-9]{1,}\\.{0,1}[0-9]{0,}")
    private String discountResuce;
    @Min(0)
    @Max(3)
    @ApiModelProperty("充值会员等级id:0,1,2,3")
    private Integer membershipLevelsId;

}
